package com.example.repair_service.mapper;


import com.example.repair_service.entity.CategoryEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {

    @Select("  SELECT *  FROM service_category WHERE parent_id = 0")
    List<CategoryEntity> getList();

    List<CategoryEntity> getListByParentId(Long parentId);
}
